﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RareEdge
{
    public partial class frmCredentials : Form
    {
        GMobileSync gMobileSync = GMobileSync.Load();

        public frmCredentials()
        {
            InitializeComponent();
        }

        private void mnuCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void mnuSave_Click(object sender, EventArgs e)
        {
            gMobileSync.Username = txtUsername.Text;
            gMobileSync.Password = txtPassword.Text;

            gMobileSync.Save();
            this.Close();
        }

        private void frmCredentials_Load(object sender, EventArgs e)
        {
            txtUsername.Text = gMobileSync.Username;
            txtPassword.Text = gMobileSync.Password;
        }
    }
}